import React, { lazy } from 'react'

const Home = lazy(() => import('../views/home'))
const Login = lazy(() => import('../views/login'))
const Detail = lazy(() => import('../views/detail'))


const routes = [
  {
    path: '/',
    element: <Home></Home>
  },
  {
    path: '/login',
    element: <Login></Login>
  },
  {
    path: '/detail',
    element: <Detail></Detail>
  }
]

export default routes